package com.xiaoge.system.service;

import com.xiaoge.system.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoge
 * @since 2021-04-13
 */
public interface BlogService extends IService<Blog> {
    /** es的操作*/
    public List<Map<String,Object>> searchByKeyword(String keyword, int pageNum, int pageSize)throws IOException;
    public Boolean parseContent(List<Blog> contents) throws IOException;

    /** 数据库操作*/
    public int insertBlog(Blog blog) throws IOException;

    /** 查询所有分类*/
    public List<Map<String, Object>> queryAllCategory();

}
